package org.example.completed.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author ${author}
 * @since 2025-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("review")
public class Review implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论 ID
     */
    private String id;

    /**
     * 关联的帖子 ID
     */
    private String postId;

    /**
     * 评论用户 ID
     */
    private String userId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String userAcoount; // 用户名

    private String avatarUrl;     // 头像

}
